<template>
  <div>
    <a-modal v-model="visible" ok-text="知道了" cancel-text="查看错误数据" title="导入结果" @ok="handleOk" @cancel="cancel">
      <a-alert message="Warning text" banner />
    </a-modal>
  </div>
</template>

<script>
export default {
  name: "ImportResult",

  props: {
    show: {
      type: Boolean,
      default: false
    },
    options: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      visible: this.show,
      detail: this.options
    };
  },

  methods: {
    // 确定
    handleOk() {
      this.$emit("change", this);
    },
    cancel() {
      this.visible = false;
    }
  }
};
</script>
